package com.happy3w.ssp.schoolmatehome.component.image.action;

import com.happy3w.ssp.schoolmatehome.component.image.Canvas;
import com.happy3w.ssp.schoolmatehome.component.image.DrawAction;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.awt.Font;

@RequiredArgsConstructor
@Getter
public class FontAction implements DrawAction {
    private final Font font;

    @Override
    public void draw(Canvas canvas) {
        canvas.getG2d().setFont(font);
    }
}
